<script>
	
	function cancel(){
		window.close();
	}
	function save(){
		$("#frmTahunAjaran").submit();		
	}
</script>
<?php
	//echo $op;
	//print_r($op);
?>

<div style="border-bottom:2px solid #000;padding-bottom:5px;margin-bottom:20px">
<?php 
	$department_id = Yii::app()->request->getParam("department_id","");
	$this->widget('application.components.widgets.ActionBar', 
		array("menuAlign" => "right", 
			'items' => array(
				array(
					'id' => "btnRefresh",
					'title' => "Simpan",
					'icon' => "images/action/Actions-document-save-all-icon.png",
					'callback'=>"save"
				),					
				array(
					'id' => "btnCancel",
					'title' => "Batal",
					'icon' => "images/action/Actions-dialog-cancel-icon.png",
					'callback'=>"cancel"
				),
			)
		)
	);
?>
</div>

<script>
	
	
</script>

<form id="frmTahunAjaran" action="index.php?r=akademik/master/department/edit" method="POST">	
	<input type="hidden" name="op" value="<?php echo $op ?>" readonly/>
	<input type="hidden" name="id" id="id" value="<?php echo $id ?>" readonly/>
	<div>
		<input type="hidden" id="department_id" name="department_id" value="<?php echo $department_id ?>"/>
		 
	</div>
	<div>
	<?php
		$this->widget('application.components.widgets.TextField', 
			array("name"=>"name",
				"value"=>$name,
				"htmlOptions"=>"size='20'",
				"label"=>array(
					"value"=>Yii::t("label","Department"),
					"htmlOptions"=>"class='form' style='width:100px'"
				)
			)
		);
	?>
	</div>
	<div><?php $this->widget('application.components.widgets.TextAreaField', array("name"=>"description","value"=>$description,"htmlOptions"=>"style='width:300px;height:60px'","label"=>array("value"=>Yii::t("label","Keterangan"),"htmlOptions"=>"class='form' style='width:100px'")));?></div>	
<div>
	<?php
		$this->widget('application.components.widgets.TextField', 
			array("name"=>"sid_prefix",
				"value"=>$sid_prefix,
				"htmlOptions"=>"size='20'",
				"label"=>array(
					"value"=>Yii::t("label","Prefix"),
					"htmlOptions"=>"class='form' style='width:100px'"
				)
			)
		);
	?>
	</div>    
	<div><label class="form" style="width:100px"><?php echo Yii::t("label","status") ?></label><input type="checkbox"  id="is_active" name="is_active" <?php echo $is_active == true?"checked":"" ?> /></div>
	
</form>

